/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-04-11 10:30:06
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-04-12 09:10:47
 * @FilePath: \mould\src\store\modules\getLqTheadData.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// getName.js

import {

    getStationmachineByfMachineid, //编辑详情
} from "@/api/request.js";
export default {
    namespaced: true, // 命名空间
    state: {
        dataList: [] // 名称列表
    },
    mutations: {
        changeNameList(state, payload) {
            // console.log(444444, state, payload);
            state.dataList = payload;
        }
    },
    actions: {
        getLqCommonData(context, payload) {
            getStationmachineByfMachineid(payload).then(res => {
                if (res.errcode == 0) {
                    context.commit("changeNameList", res.data.yjQmpMsStationmachine);
                } else {
                    this.$message.error(res.msg);
                }
            });
        }
    }
};